package com.redis.arresting.hook.springconf;

import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;

import javax.sql.DataSource;

//@Configuration
public class DataSourceConfig {
//    @Bean
//    @Primary
//    @ConfigurationProperties(prefix="ds.master")
    public DataSource masterDS() {
        return DataSourceBuilder.create().type(org.apache.commons.dbcp.BasicDataSource.class).build();
    }

//    @Bean
//    @ConfigurationProperties(prefix="ds.slave.1")
//    public DataSource slave_1_DS() {
//        return DataSourceBuilder.create().type(org.apache.commons.dbcp.BasicDataSource.class).build();
//    }
//
//    @Bean
//    @ConfigurationProperties(prefix="ds.slave.2")
//    public DataSource slave_2_DS() {
//        return DataSourceBuilder.create().type(org.apache.commons.dbcp.BasicDataSource.class).build();
//    }

}
